package com.fireline.beauty.test;

import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.widgets.Dialog;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

import com.fireline.beauty.seting.FfxmView;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Group;

public class FwxmszTestDlg extends Dialog {

	protected Object result;
	protected Shell shell;

	/**
	 * Create the dialog.
	 * 
	 * @param parent
	 * @param style
	 */
	public FwxmszTestDlg(Shell parent, int style) {
		super(parent, style);
		setText("SWT Dialog");
	}

	/**
	 * Open the dialog.
	 * 
	 * @return the result
	 */
	public Object open() {
		createContents();
		shell.open();
		shell.layout();
		Display display = getParent().getDisplay();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
		return result;
	}

	/**
	 * Create contents of the dialog.
	 */
	private void createContents() {
		shell = new Shell(getParent(), SWT.DIALOG_TRIM | SWT.MAX | SWT.RESIZE
				| SWT.APPLICATION_MODAL);
		shell.setSize(631, 452);
		shell.setText(getText());
		
		Group group = new Group(shell, SWT.BORDER | SWT.SHADOW_IN);
		group.setBounds(24, 40, 70, 79);
		
		Group group_1 = new Group(shell, SWT.BORDER | SWT.SHADOW_ETCHED_OUT);
		group_1.setBounds(182, 58, 70, 79);
		
	}

	public static void main(String[] args) {
		FwxmszTestDlg dlg = new FwxmszTestDlg(new Shell(), SWT.NONE);
		dlg.open();
	}
}
